home *** CD-ROM | disk | FTP | other *** search
/ Resource Library: Multimedia / Resource Library: Multimedia.iso / hypercrd / xcmds / tffdsply.hqx / TIFF Stack / cards.xml < prev    next >
Text File  |  1993-01-04  |  28KB  |  738 lines

  1. card_4429.xml
  2. <?xml version="1.0" encoding="utf-8" ?>
  3. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  4. <card>
  5.     <id>4429</id>
  6.     <filler1>0</filler1>
  7.     <cantDelete> <false /> </cantDelete>
  8.     <showPict> <true /> </showPict>
  9.     <dontSearch> <false /> </dontSearch>
  10.     <owner>2600</owner>
  11.     <link rel="stylesheet" type="text/css" href="stylesheet_3187.css" />
  12.     <part>
  13.         <id>1</id>
  14.         <type>field</type>
  15.         <visible> <true /> </visible>
  16.         <dontWrap> <false /> </dontWrap>
  17.         <dontSearch> <false /> </dontSearch>
  18.         <sharedText> <false /> </sharedText>
  19.         <fixedLineHeight> <false /> </fixedLineHeight>
  20.         <autoTab> <false /> </autoTab>
  21.         <lockText> <false /> </lockText>
  22.         <rect>
  23.             <left>0</left>
  24.             <top>18</top>
  25.             <right>448</right>
  26.             <bottom>260</bottom>
  27.         </rect>
  28.         <style>scrolling</style>
  29.         <autoSelect> <false /> </autoSelect>
  30.         <showLines> <false /> </showLines>
  31.         <wideMargins> <false /> </wideMargins>
  32.         <multipleLines> <false /> </multipleLines>
  33.         <reservedFamily> 0 </reservedFamily>
  34.         <titleWidth>0</titleWidth>
  35.         <icon>0</icon>
  36.         <textAlign>left</textAlign>
  37.         <font>Geneva</font>
  38.         <textSize>12</textSize>
  39.         <textStyle>plain</textStyle>
  40.         <textHeight>16</textHeight>
  41.         <name></name>
  42.         <script></script>
  43.     </part>
  44.     <part>
  45.         <id>2</id>
  46.         <type>field</type>
  47.         <visible> <true /> </visible>
  48.         <dontWrap> <false /> </dontWrap>
  49.         <dontSearch> <false /> </dontSearch>
  50.         <sharedText> <false /> </sharedText>
  51.         <fixedLineHeight> <false /> </fixedLineHeight>
  52.         <autoTab> <false /> </autoTab>
  53.         <lockText> <true /> </lockText>
  54.         <rect>
  55.             <left>0</left>
  56.             <top>1</top>
  57.             <right>448</right>
  58.             <bottom>18</bottom>
  59.         </rect>
  60.         <style>transparent</style>
  61.         <autoSelect> <false /> </autoSelect>
  62.         <showLines> <false /> </showLines>
  63.         <wideMargins> <false /> </wideMargins>
  64.         <multipleLines> <false /> </multipleLines>
  65.         <reservedFamily> 0 </reservedFamily>
  66.         <titleWidth>0</titleWidth>
  67.         <icon>0</icon>
  68.         <textAlign>center</textAlign>
  69.         <font>Geneva</font>
  70.         <textSize>12</textSize>
  71.         <textStyle>bold</textStyle>
  72.         <textHeight>16</textHeight>
  73.         <name></name>
  74.         <script></script>
  75.     </part>
  76.     <part>
  77.         <id>3</id>
  78.         <type>button</type>
  79.         <visible> <true /> </visible>
  80.         <reserved5> 0 </reserved5>
  81.         <reserved4> 0 </reserved4>
  82.         <reserved3> 0 </reserved3>
  83.         <reserved2> 0 </reserved2>
  84.         <reserved1> 0 </reserved1>
  85.         <enabled> <true /> </enabled>
  86.         <rect>
  87.             <left>415</left>
  88.             <top>269</top>
  89.             <right>448</right>
  90.             <bottom>296</bottom>
  91.         </rect>
  92.         <style>transparent</style>
  93.         <showName> <false /> </showName>
  94.         <highlight> <false /> </highlight>
  95.         <autoHighlight> <true /> </autoHighlight>
  96.         <sharedHighlight> <true /> </sharedHighlight>
  97.         <family>0</family>
  98.         <titleWidth>0</titleWidth>
  99.         <icon>2162</icon>
  100.         <textAlign>center</textAlign>
  101.         <font>Chicago</font>
  102.         <textSize>12</textSize>
  103.         <textStyle>plain</textStyle>
  104.         <name>New Button</name>
  105.         <script>on mouseUpgo card 1end mouseUp</script>
  106.     </part>
  107.     <content>
  108.         <layer>card</layer>
  109.         <id>2</id>
  110.         <text>TIFFWindow XCMD Documentation (v1.0)</text>
  111.     </content>
  112.     <content>
  113.         <layer>card</layer>
  114.         <id>1</id>
  115.         <text><span class="style5">alling TIFFWindow</span><span class="style3"></span><span class="style4">TIFFWindow file, windowStyle, visible, depth, customPalette</span><span class="style3">TIFFWindow uses Hypercard's file search path to look for the TIFF file named by the first argument. If no arguments are supplied, or if the file is "", TIFFWindow prompts the user for a TIFF file. If the user presses cancel, TIFFWindow sets </span><span class="style4">the result</span><span class="style3"> to </span><span class="style4">cancel</span><span class="style3">.</span><span class="style4">windowStyle</span><span class="style3"> has no effect right now; you should use </span><span class="style4">zoom</span><span class="style3">.</span><span class="style4">visible</span><span class="style3"> controls whether the window starts out visible. The default is true.</span><span class="style4">depth</span><span class="style3"> sets the depth of the off-screen buffer in which TIFFWindow stores a copy of the image. This buffer greatly improves redraw and scroll speed, but can be quite large. 0 means no buffer at all: all drawing is done from the disk. Only 0, 16 and 32 work with all images. 1, 2, 4, and 8 only work well if the TIFF image is actually that depth. TIFFWindow will reduce the off-screen depth to the depth of the TIFF image. If there is not enough memory, it won't use an off-screen buffer. The default depth is 32.</span><span class="style4">customPalette</span><span class="style3"> can be true, a number, or false. The default is true, which causes TIFFWindow to compute a reasonable palette of colors with which to display the image on monitors set to 16 or 256 colors. This is helpful if the image has more colors than the monitor. A number indicates the resource number of a custom sampling method (of type cpmt). False means to use the color map in the TIFF file, or none if there was none. Computing a palette can take a few seconds. Custom palettes only work with an off-screen buffer.If </span><span class="style4">the result</span><span class="style3"> is not empty after TIFFWindow returns, it contains an error message. TIFFWindow usually returns an error message if it doesn't understand the TIFF file format, but occasionally it doesn't find this out until too late, in which case it will display an empty window.You can leave off any trailing set of arguments; they all have defaults.</span><span class="style5">Window Properties</span><span class="style3">The </span><span class="style4">dithering</span><span class="style3"> property controls dithering. This only works well from an off-screen graphics buffer. The default is false.The </span><span class="style4">scrollbars</span><span class="style3"> property controls whether scrollbars are visible. The default is true.The </span><span class="style4">picturewidth</span><span class="style3"> and </span><span class="style4">pictureheight</span><span class="style3"> properties yield the size of the image in pixels.The </span><span class="style4">scale</span><span class="style3"> property, a number, controls zooming of the image. Each displayed pixel represents a square 2^scale pixels on a side in the original. So, for instance, a scale of 0 (the default) means no change, 1 means double the image size, and -1 means halve it. The default is 0.The </span><span class="style4">picturedepth</span><span class="style3"> property yields the pixel depth of the TIFF image.</span><span class="style5">Messages</span><span class="style3">If the user clicks on the picture, TIFFWindow sends to HyperTalk messages, one when the user presses the mouse button, and one when he or she releases the button. The messages are MouseDownInPicture and MouseUpInPicture. The messages have two arguments, the window name and the image coordinates.  </span><span class="style5">Restrictions</span><span class="style3">TIFFWindow requires Hypercard 2.0 or greater. 24-bit images require 32-bit QuickDraw. 2, 4, and 8-bit images require Color QuickDraw. Black-and-white images work on Macintoshes with the original QuickDraw. The dithering and off-screen buffer features require 32-bit QuickDraw. Custom palettes require System 7 (for the Picture Utilities) as well as 32-bit QuickDraw.Even without an off-screen buffer, TIFFWindow may temporarily have to read some images entirely into memory in order to decompress them. Most images can be read in small chunks.Custom palettes don't work well if you have multiple monitors set to different depths, or if you change the depth of a monitor while TIFFWindow is running. TIFFWindow computes a palette suitable for the deepest monitor at the time it was called. Palettes are not relevant for black-and-white, gray-scale, or direct color (16 or 24 bit) monitors. TIFFWindow will not bother computing a palette for such monitors.Many obscure TIFF features aren't implemented, among them FAX and JPEG compression, planar data, tiles, and depths other than 1, 2, 4, 8, and 24 bits.If you would like me to fix TIFFWindow to display some particular kind of TIFF file, send me a small sample of such a file.</span><span class="style5">TIFF Specification</span><span class="style3">You can get a copy of the TIFF spec from Aldus by calling (206) 628-6593, or writing to:Aldus Developers DeskAldus Corporation411 First Avenue SourthSeattle, WA 98104-2871The author of this XCMD has no connection with Aldus.</span></text>
  116.     </content>
  117.     <name></name>
  118.     <script></script>
  119. </card>
  120.  
  121.  
  122. card_2842.xml
  123. <?xml version="1.0" encoding="utf-8" ?>
  124. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  125. <card>
  126.     <id>2842</id>
  127.     <filler1>0</filler1>
  128.     <cantDelete> <false /> </cantDelete>
  129.     <showPict> <true /> </showPict>
  130.     <dontSearch> <false /> </dontSearch>
  131.     <owner>2600</owner>
  132.     <link rel="stylesheet" type="text/css" href="stylesheet_3187.css" />
  133.     <part>
  134.         <id>1</id>
  135.         <type>button</type>
  136.         <visible> <true /> </visible>
  137.         <reserved5> 0 </reserved5>
  138.         <reserved4> 0 </reserved4>
  139.         <reserved3> 0 </reserved3>
  140.         <reserved2> 0 </reserved2>
  141.         <reserved1> 0 </reserved1>
  142.         <enabled> <true /> </enabled>
  143.         <rect>
  144.             <left>10</left>
  145.             <top>38</top>
  146.             <right>110</right>
  147.             <bottom>60</bottom>
  148.         </rect>
  149.         <style>roundrect</style>
  150.         <showName> <true /> </showName>
  151.         <highlight> <false /> </highlight>
  152.         <autoHighlight> <true /> </autoHighlight>
  153.         <sharedHighlight> <true /> </sharedHighlight>
  154.         <family>0</family>
  155.         <titleWidth>0</titleWidth>
  156.         <icon>0</icon>
  157.         <textAlign>center</textAlign>
  158.         <font>Chicago</font>
  159.         <textSize>12</textSize>
  160.         <textStyle>plain</textStyle>
  161.         <name>TIFFWindow</name>
  162.         <script>on mouseUpif the highlight of btn "off-screen buffer" then-- TIFFWindow will use a shallower buffer if the image itself-- is not this deep. It will use no buffer at all if there-- is not enough memory (but it will still work).put 32 into depthelseput 0 into depthend ifif the highlight of btn "custom palette" thenif cd fld "cp" <> "" then-- Select a color-sampling method.-- 0 is system default.-- 1 uses most frequently used colors.-- 2 chooses a wide range of colors.put cd fld "cp" into customPaletteelseput true into customPaletteend ifelseput false into customPaletteend ifput the highlight of btn "dither" into ditherput the highlight of btn "scrollbars" into scrollbarsput ((not dither) and scrollbars) into vis-- TIFFWindow file, windowtype, visible, gwdepth, customPaletteTIFFWindow "", "", vis, depth, customPaletteput the result into rsif rs <> "" thenif rs <> "cancel" thenanswer rsend ifexit to hypercardend ifput FrontTIFFWindow() into wnameset the "dithering" of window wname to ditherset the "scrollbars" of window wname to scrollbarsif vis is false thenshow window wnameend ifput the picturedepth of window wname into depthput the picturewidth of window wname into widthput the pictureheight of window wname into heightput wname&":"&&depth&&"bits"&&width&"x"&height into cd fld "info"end mouseUp</script>
  163.     </part>
  164.     <part>
  165.         <id>2</id>
  166.         <type>button</type>
  167.         <visible> <true /> </visible>
  168.         <reserved5> 0 </reserved5>
  169.         <reserved4> 0 </reserved4>
  170.         <reserved3> 0 </reserved3>
  171.         <reserved2> 0 </reserved2>
  172.         <reserved1> 0 </reserved1>
  173.         <enabled> <true /> </enabled>
  174.         <rect>
  175.             <left>12</left>
  176.             <top>103</top>
  177.             <right>112</right>
  178.             <bottom>125</bottom>
  179.         </rect>
  180.         <style>checkbox</style>
  181.         <showName> <true /> </showName>
  182.         <highlight> <false /> </highlight>
  183.         <autoHighlight> <true /> </autoHighlight>
  184.         <sharedHighlight> <true /> </sharedHighlight>
  185.         <family>0</family>
  186.         <titleWidth>0</titleWidth>
  187.         <icon>0</icon>
  188.         <textAlign>center</textAlign>
  189.         <font>Chicago</font>
  190.         <textSize>12</textSize>
  191.         <textStyle>plain</textStyle>
  192.         <name>Dither</name>
  193.         <script></script>
  194.     </part>
  195.     <part>
  196.         <id>3</id>
  197.         <type>button</type>
  198.         <visible> <true /> </visible>
  199.         <reserved5> 0 </reserved5>
  200.         <reserved4> 0 </reserved4>
  201.         <reserved3> 0 </reserved3>
  202.         <reserved2> 0 </reserved2>
  203.         <reserved1> 0 </reserved1>
  204.         <enabled> <true /> </enabled>
  205.         <rect>
  206.             <left>12</left>
  207.             <top>124</top>
  208.             <right>134</right>
  209.             <bottom>146</bottom>
  210.         </rect>
  211.         <style>checkbox</style>
  212.         <showName> <true /> </showName>
  213.         <highlight> <true /> </highlight>
  214.         <autoHighlight> <true /> </autoHighlight>
  215.         <sharedHighlight> <true /> </sharedHighlight>
  216.         <family>0</family>
  217.         <titleWidth>0</titleWidth>
  218.         <icon>0</icon>
  219.         <textAlign>center</textAlign>
  220.         <font>Chicago</font>
  221.         <textSize>12</textSize>
  222.         <textStyle>plain</textStyle>
  223.         <name>Scrollbars</name>
  224.         <script></script>
  225.     </part>
  226.     <part>
  227.         <id>4</id>
  228.         <type>button</type>
  229.         <visible> <true /> </visible>
  230.         <reserved5> 0 </reserved5>
  231.         <reserved4> 0 </reserved4>
  232.         <reserved3> 0 </reserved3>
  233.         <reserved2> 0 </reserved2>
  234.         <reserved1> 0 </reserved1>
  235.         <enabled> <true /> </enabled>
  236.         <rect>
  237.             <left>216</left>
  238.             <top>38</top>
  239.             <right>316</right>
  240.             <bottom>60</bottom>
  241.         </rect>
  242.         <style>roundrect</style>
  243.         <showName> <true /> </showName>
  244.         <highlight> <false /> </highlight>
  245.         <autoHighlight> <true /> </autoHighlight>
  246.         <sharedHighlight> <true /> </sharedHighlight>
  247.         <family>0</family>
  248.         <titleWidth>0</titleWidth>
  249.         <icon>0</icon>
  250.         <textAlign>center</textAlign>
  251.         <font>Chicago</font>
  252.         <textSize>12</textSize>
  253.         <textStyle>plain</textStyle>
  254.         <name>Zoom In</name>
  255.         <script>on mouseUpput FrontTIFFWindow() into wput the scale of window w into scaleset the scale of window w to scale + 1end mouseUp</script>
  256.     </part>
  257.     <part>
  258.         <id>5</id>
  259.         <type>button</type>
  260.         <visible> <true /> </visible>
  261.         <reserved5> 0 </reserved5>
  262.         <reserved4> 0 </reserved4>
  263.         <reserved3> 0 </reserved3>
  264.         <reserved2> 0 </reserved2>
  265.         <reserved1> 0 </reserved1>
  266.         <enabled> <true /> </enabled>
  267.         <rect>
  268.             <left>216</left>
  269.             <top>64</top>
  270.             <right>316</right>
  271.             <bottom>86</bottom>
  272.         </rect>
  273.         <style>roundrect</style>
  274.         <showName> <true /> </showName>
  275.         <highlight> <false /> </highlight>
  276.         <autoHighlight> <true /> </autoHighlight>
  277.         <sharedHighlight> <true /> </sharedHighlight>
  278.         <family>0</family>
  279.         <titleWidth>0</titleWidth>
  280.         <icon>0</icon>
  281.         <textAlign>center</textAlign>
  282.         <font>Chicago</font>
  283.         <textSize>12</textSize>
  284.         <textStyle>plain</textStyle>
  285.         <name>Zoom Out</name>
  286.         <script>on mouseUpput FrontTIFFWindow() into wput the scale of window w into scaleset the scale of window w to scale - 1end mouseUp</script>
  287.     </part>
  288.     <part>
  289.         <id>8</id>
  290.         <type>button</type>
  291.         <visible> <true /> </visible>
  292.         <reserved5> 0 </reserved5>
  293.         <reserved4> 0 </reserved4>
  294.         <reserved3> 0 </reserved3>
  295.         <reserved2> 0 </reserved2>
  296.         <reserved1> 0 </reserved1>
  297.         <enabled> <true /> </enabled>
  298.         <rect>
  299.             <left>12</left>
  300.             <top>82</top>
  301.             <right>136</right>
  302.             <bottom>104</bottom>
  303.         </rect>
  304.         <style>checkbox</style>
  305.         <showName> <true /> </showName>
  306.         <highlight> <true /> </highlight>
  307.         <autoHighlight> <true /> </autoHighlight>
  308.         <sharedHighlight> <true /> </sharedHighlight>
  309.         <family>0</family>
  310.         <titleWidth>0</titleWidth>
  311.         <icon>0</icon>
  312.         <textAlign>center</textAlign>
  313.         <font>Chicago</font>
  314.         <textSize>12</textSize>
  315.         <textStyle>plain</textStyle>
  316.         <name>Custom Palette</name>
  317.         <script></script>
  318.     </part>
  319.     <part>
  320.         <id>9</id>
  321.         <type>button</type>
  322.         <visible> <true /> </visible>
  323.         <reserved5> 0 </reserved5>
  324.         <reserved4> 0 </reserved4>
  325.         <reserved3> 0 </reserved3>
  326.         <reserved2> 0 </reserved2>
  327.         <reserved1> 0 </reserved1>
  328.         <enabled> <true /> </enabled>
  329.         <rect>
  330.             <left>12</left>
  331.             <top>63</top>
  332.             <right>153</right>
  333.             <bottom>83</bottom>
  334.         </rect>
  335.         <style>checkbox</style>
  336.         <showName> <true /> </showName>
  337.         <highlight> <true /> </highlight>
  338.         <autoHighlight> <true /> </autoHighlight>
  339.         <sharedHighlight> <true /> </sharedHighlight>
  340.         <family>0</family>
  341.         <titleWidth>0</titleWidth>
  342.         <icon>0</icon>
  343.         <textAlign>center</textAlign>
  344.         <font>Chicago</font>
  345.         <textSize>12</textSize>
  346.         <textStyle>plain</textStyle>
  347.         <name>Off-Screen Buffer</name>
  348.         <script></script>
  349.     </part>
  350.     <part>
  351.         <id>10</id>
  352.         <type>field</type>
  353.         <visible> <true /> </visible>
  354.         <dontWrap> <false /> </dontWrap>
  355.         <dontSearch> <false /> </dontSearch>
  356.         <sharedText> <false /> </sharedText>
  357.         <fixedLineHeight> <false /> </fixedLineHeight>
  358.         <autoTab> <false /> </autoTab>
  359.         <lockText> <true /> </lockText>
  360.         <rect>
  361.             <left>9</left>
  362.             <top>151</top>
  363.             <right>343</right>
  364.             <bottom>168</bottom>
  365.         </rect>
  366.         <style>rectangle</style>
  367.         <autoSelect> <false /> </autoSelect>
  368.         <showLines> <false /> </showLines>
  369.         <wideMargins> <false /> </wideMargins>
  370.         <multipleLines> <false /> </multipleLines>
  371.         <reservedFamily> 0 </reservedFamily>
  372.         <titleWidth>0</titleWidth>
  373.         <icon>0</icon>
  374.         <textAlign>left</textAlign>
  375.         <font>Geneva</font>
  376.         <textSize>12</textSize>
  377.         <textStyle>plain</textStyle>
  378.         <textHeight>16</textHeight>
  379.         <name>info</name>
  380.         <script></script>
  381.     </part>
  382.     <part>
  383.         <id>11</id>
  384.         <type>field</type>
  385.         <visible> <true /> </visible>
  386.         <dontWrap> <false /> </dontWrap>
  387.         <dontSearch> <false /> </dontSearch>
  388.         <sharedText> <false /> </sharedText>
  389.         <fixedLineHeight> <false /> </fixedLineHeight>
  390.         <autoTab> <false /> </autoTab>
  391.         <lockText> <false /> </lockText>
  392.         <rect>
  393.             <left>135</left>
  394.             <top>84</top>
  395.             <right>169</right>
  396.             <bottom>101</bottom>
  397.         </rect>
  398.         <style>rectangle</style>
  399.         <autoSelect> <false /> </autoSelect>
  400.         <showLines> <false /> </showLines>
  401.         <wideMargins> <false /> </wideMargins>
  402.         <multipleLines> <false /> </multipleLines>
  403.         <reservedFamily> 0 </reservedFamily>
  404.         <titleWidth>0</titleWidth>
  405.         <icon>0</icon>
  406.         <textAlign>left</textAlign>
  407.         <font>Geneva</font>
  408.         <textSize>12</textSize>
  409.         <textStyle>plain</textStyle>
  410.         <textHeight>16</textHeight>
  411.         <name>cp</name>
  412.         <script></script>
  413.     </part>
  414.     <part>
  415.         <id>12</id>
  416.         <type>field</type>
  417.         <visible> <false /> </visible>
  418.         <dontWrap> <false /> </dontWrap>
  419.         <dontSearch> <false /> </dontSearch>
  420.         <sharedText> <false /> </sharedText>
  421.         <fixedLineHeight> <false /> </fixedLineHeight>
  422.         <autoTab> <false /> </autoTab>
  423.         <lockText> <false /> </lockText>
  424.         <rect>
  425.             <left>37</left>
  426.             <top>175</top>
  427.             <right>230</right>
  428.             <bottom>240</bottom>
  429.         </rect>
  430.         <style>scrolling</style>
  431.         <autoSelect> <false /> </autoSelect>
  432.         <showLines> <false /> </showLines>
  433.         <wideMargins> <false /> </wideMargins>
  434.         <multipleLines> <false /> </multipleLines>
  435.         <reservedFamily> 0 </reservedFamily>
  436.         <titleWidth>0</titleWidth>
  437.         <icon>0</icon>
  438.         <textAlign>left</textAlign>
  439.         <font>Geneva</font>
  440.         <textSize>12</textSize>
  441.         <textStyle>plain</textStyle>
  442.         <textHeight>16</textHeight>
  443.         <name>images</name>
  444.         <script></script>
  445.     </part>
  446.     <part>
  447.         <id>13</id>
  448.         <type>button</type>
  449.         <visible> <false /> </visible>
  450.         <reserved5> 0 </reserved5>
  451.         <reserved4> 0 </reserved4>
  452.         <reserved3> 0 </reserved3>
  453.         <reserved2> 0 </reserved2>
  454.         <reserved1> 0 </reserved1>
  455.         <enabled> <true /> </enabled>
  456.         <rect>
  457.             <left>241</left>
  458.             <top>197</top>
  459.             <right>341</right>
  460.             <bottom>219</bottom>
  461.         </rect>
  462.         <style>roundrect</style>
  463.         <showName> <true /> </showName>
  464.         <highlight> <false /> </highlight>
  465.         <autoHighlight> <true /> </autoHighlight>
  466.         <sharedHighlight> <true /> </sharedHighlight>
  467.         <family>0</family>
  468.         <titleWidth>0</titleWidth>
  469.         <icon>0</icon>
  470.         <textAlign>center</textAlign>
  471.         <font>Chicago</font>
  472.         <textSize>12</textSize>
  473.         <textStyle>plain</textStyle>
  474.         <name>Test</name>
  475.         <script>on mouseUprepeatTestImagesend repeatend mouseUp</script>
  476.     </part>
  477.     <part>
  478.         <id>14</id>
  479.         <type>button</type>
  480.         <visible> <true /> </visible>
  481.         <reserved5> 0 </reserved5>
  482.         <reserved4> 0 </reserved4>
  483.         <reserved3> 0 </reserved3>
  484.         <reserved2> 0 </reserved2>
  485.         <reserved1> 0 </reserved1>
  486.         <enabled> <true /> </enabled>
  487.         <rect>
  488.             <left>424</left>
  489.             <top>0</top>
  490.             <right>448</right>
  491.             <bottom>23</bottom>
  492.         </rect>
  493.         <style>transparent</style>
  494.         <showName> <false /> </showName>
  495.         <highlight> <false /> </highlight>
  496.         <autoHighlight> <false /> </autoHighlight>
  497.         <sharedHighlight> <true /> </sharedHighlight>
  498.         <family>0</family>
  499.         <titleWidth>0</titleWidth>
  500.         <icon>0</icon>
  501.         <textAlign>center</textAlign>
  502.         <font>Chicago</font>
  503.         <textSize>12</textSize>
  504.         <textStyle>plain</textStyle>
  505.         <name>New Button</name>
  506.         <script>on mouseUpif the visible of cd fld "images" thenhide cd fld "images"hide cd btn "test"elseshow cd fld "images"show cd btn "test"end ifend mouseUp</script>
  507.     </part>
  508.     <part>
  509.         <id>15</id>
  510.         <type>button</type>
  511.         <visible> <true /> </visible>
  512.         <reserved5> 0 </reserved5>
  513.         <reserved4> 0 </reserved4>
  514.         <reserved3> 0 </reserved3>
  515.         <reserved2> 0 </reserved2>
  516.         <reserved1> 0 </reserved1>
  517.         <enabled> <true /> </enabled>
  518.         <rect>
  519.             <left>410</left>
  520.             <top>265</top>
  521.             <right>444</right>
  522.             <bottom>294</bottom>
  523.         </rect>
  524.         <style>transparent</style>
  525.         <showName> <false /> </showName>
  526.         <highlight> <false /> </highlight>
  527.         <autoHighlight> <true /> </autoHighlight>
  528.         <sharedHighlight> <true /> </sharedHighlight>
  529.         <family>0</family>
  530.         <titleWidth>0</titleWidth>
  531.         <icon>2162</icon>
  532.         <textAlign>center</textAlign>
  533.         <font>Chicago</font>
  534.         <textSize>12</textSize>
  535.         <textStyle>plain</textStyle>
  536.         <name>New Button</name>
  537.         <script>on mouseUpgo card 1end mouseUp</script>
  538.     </part>
  539.     <content>
  540.         <layer>card</layer>
  541.         <id>12</id>
  542.         <text>1-bit1-bit large lzw1-bit large lzw(P)1-bit odd1-bit PM (L)1-bit PM (P)1-bit wide1-bit wide(P)2-bit Brugges.tiff32-bit32-bit Medium Size32-bit lzw32-bit PC8-bit8-bit Image 1.448-bit lzw8-bit Medium Size8-bit PC8-bit, big, even8-bit, big, even(P)Big 32-bit LZWfantasia-1-bit-group-3.tiffantasia-1-bit-group-4.tiffantasia-1-bit-lzw.tiffantasia-1-bit-pack.tiffantasia-1-bit.tiffantasia-lzw.tiffantasia-pack.tiffantasia.tifGrayGray lzwGray PCGray PC lzwGray PM (LD)Gray PM (LD2)nasaball.tifnewton.TIFFparthenon-64parthenon-ditherPC.TIFPCLZW.TIFstatue-16statue-256storm-lzw.tifstorm-pack.tifstorm-reduce.tif</text>
  543.     </content>
  544.     <name></name>
  545.     <script>function FrontTIFFWindowput the windows into wlrepeat until wl is ""put line 1 of wl into wnameif the owner of window wname is "tiffwindow" thenreturn wnameend ifdelete line 1 of wlend repeatanswer "There are no TIFF windows."exit to hypercardend FrontTIFFWindowon TestImagesput cd fld "images" into imagesrepeat while images <> ""TestImage line 1 of imagesdelete line 1 of imagesend repeatend TestImageson TestImage filenameTIFFWindow filenameput the result into rsif rs <> "" thenput filename && rselseidleidlewait 20 ticksidleidleclose window filenameend ifend TestImageon RepeatImage filenamerepeatput the heapspaceTestImage filenameend repeatend repeatimage</script>
  546. </card>
  547.  
  548.  
  549. card_3862.xml
  550. <?xml version="1.0" encoding="utf-8" ?>
  551. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  552. <card>
  553.     <id>3862</id>
  554.     <filler1>0</filler1>
  555.     <cantDelete> <false /> </cantDelete>
  556.     <showPict> <true /> </showPict>
  557.     <dontSearch> <false /> </dontSearch>
  558.     <owner>2600</owner>
  559.     <link rel="stylesheet" type="text/css" href="stylesheet_3187.css" />
  560.     <part>
  561.         <id>1</id>
  562.         <type>field</type>
  563.         <visible> <true /> </visible>
  564.         <dontWrap> <false /> </dontWrap>
  565.         <dontSearch> <false /> </dontSearch>
  566.         <sharedText> <false /> </sharedText>
  567.         <fixedLineHeight> <false /> </fixedLineHeight>
  568.         <autoTab> <false /> </autoTab>
  569.         <lockText> <true /> </lockText>
  570.         <rect>
  571.             <left>23</left>
  572.             <top>151</top>
  573.             <right>424</right>
  574.             <bottom>274</bottom>
  575.         </rect>
  576.         <style>rectangle</style>
  577.         <autoSelect> <false /> </autoSelect>
  578.         <showLines> <false /> </showLines>
  579.         <wideMargins> <false /> </wideMargins>
  580.         <multipleLines> <false /> </multipleLines>
  581.         <reservedFamily> 0 </reservedFamily>
  582.         <titleWidth>0</titleWidth>
  583.         <icon>0</icon>
  584.         <textAlign>left</textAlign>
  585.         <font>Geneva</font>
  586.         <textSize>10</textSize>
  587.         <textStyle>plain</textStyle>
  588.         <textHeight>13</textHeight>
  589.         <name></name>
  590.         <script></script>
  591.     </part>
  592.     <part>
  593.         <id>2</id>
  594.         <type>field</type>
  595.         <visible> <true /> </visible>
  596.         <dontWrap> <false /> </dontWrap>
  597.         <dontSearch> <false /> </dontSearch>
  598.         <sharedText> <false /> </sharedText>
  599.         <fixedLineHeight> <false /> </fixedLineHeight>
  600.         <autoTab> <false /> </autoTab>
  601.         <lockText> <true /> </lockText>
  602.         <rect>
  603.             <left>0</left>
  604.             <top>4</top>
  605.             <right>448</right>
  606.             <bottom>30</bottom>
  607.         </rect>
  608.         <style>transparent</style>
  609.         <autoSelect> <false /> </autoSelect>
  610.         <showLines> <false /> </showLines>
  611.         <wideMargins> <false /> </wideMargins>
  612.         <multipleLines> <false /> </multipleLines>
  613.         <reservedFamily> 0 </reservedFamily>
  614.         <titleWidth>0</titleWidth>
  615.         <icon>0</icon>
  616.         <textAlign>center</textAlign>
  617.         <font>Geneva</font>
  618.         <textSize>12</textSize>
  619.         <textStyle>plain</textStyle>
  620.         <textHeight>16</textHeight>
  621.         <name></name>
  622.         <script></script>
  623.     </part>
  624.     <part>
  625.         <id>3</id>
  626.         <type>field</type>
  627.         <visible> <true /> </visible>
  628.         <dontWrap> <false /> </dontWrap>
  629.         <dontSearch> <false /> </dontSearch>
  630.         <sharedText> <false /> </sharedText>
  631.         <fixedLineHeight> <false /> </fixedLineHeight>
  632.         <autoTab> <false /> </autoTab>
  633.         <lockText> <true /> </lockText>
  634.         <rect>
  635.             <left>23</left>
  636.             <top>33</top>
  637.             <right>424</right>
  638.             <bottom>114</bottom>
  639.         </rect>
  640.         <style>transparent</style>
  641.         <autoSelect> <false /> </autoSelect>
  642.         <showLines> <false /> </showLines>
  643.         <wideMargins> <false /> </wideMargins>
  644.         <multipleLines> <false /> </multipleLines>
  645.         <reservedFamily> 0 </reservedFamily>
  646.         <titleWidth>0</titleWidth>
  647.         <icon>0</icon>
  648.         <textAlign>left</textAlign>
  649.         <font>Geneva</font>
  650.         <textSize>12</textSize>
  651.         <textStyle>plain</textStyle>
  652.         <textHeight>16</textHeight>
  653.         <name></name>
  654.         <script></script>
  655.     </part>
  656.     <part>
  657.         <id>6</id>
  658.         <type>button</type>
  659.         <visible> <true /> </visible>
  660.         <reserved5> 0 </reserved5>
  661.         <reserved4> 0 </reserved4>
  662.         <reserved3> 0 </reserved3>
  663.         <reserved2> 0 </reserved2>
  664.         <reserved1> 0 </reserved1>
  665.         <enabled> <true /> </enabled>
  666.         <rect>
  667.             <left>234</left>
  668.             <top>120</top>
  669.             <right>349</right>
  670.             <bottom>142</bottom>
  671.         </rect>
  672.         <style>roundrect</style>
  673.         <showName> <true /> </showName>
  674.         <highlight> <false /> </highlight>
  675.         <autoHighlight> <true /> </autoHighlight>
  676.         <sharedHighlight> <true /> </sharedHighlight>
  677.         <family>0</family>
  678.         <titleWidth>0</titleWidth>
  679.         <icon>0</icon>
  680.         <textAlign>center</textAlign>
  681.         <font>Chicago</font>
  682.         <textSize>12</textSize>
  683.         <textStyle>plain</textStyle>
  684.         <name>Documentation</name>
  685.         <script>on mouseUpgo card 3end mouseUp</script>
  686.     </part>
  687.     <part>
  688.         <id>7</id>
  689.         <type>button</type>
  690.         <visible> <true /> </visible>
  691.         <reserved5> 0 </reserved5>
  692.         <reserved4> 0 </reserved4>
  693.         <reserved3> 0 </reserved3>
  694.         <reserved2> 0 </reserved2>
  695.         <reserved1> 0 </reserved1>
  696.         <enabled> <true /> </enabled>
  697.         <rect>
  698.             <left>104</left>
  699.             <top>120</top>
  700.             <right>219</right>
  701.             <bottom>142</bottom>
  702.         </rect>
  703.         <style>roundrect</style>
  704.         <showName> <true /> </showName>
  705.         <highlight> <false /> </highlight>
  706.         <autoHighlight> <true /> </autoHighlight>
  707.         <sharedHighlight> <true /> </sharedHighlight>
  708.         <family>0</family>
  709.         <titleWidth>0</titleWidth>
  710.         <icon>0</icon>
  711.         <textAlign>center</textAlign>
  712.         <font>Chicago</font>
  713.         <textSize>12</textSize>
  714.         <textStyle>plain</textStyle>
  715.         <name>Demo</name>
  716.         <script>on mouseUpgo  card 2end mouseUp</script>
  717.     </part>
  718.     <content>
  719.         <layer>card</layer>
  720.         <id>1</id>
  721.         <text><span class="style1">he XCMD in this stack is copyright 1992 by Robert Morris. You may freely redistribute this stack if you do so in the same form as you got it. If you find this software useful, please send a $12 shareware fee to:    Robert Morris    P.O. Box 1044    Harvard Square Station    Cambridge, MA 02238    ecognome@aol.comIf you incorporate any of this software in any kind of commercial product, please send $2 per copy distributed to the above address.</span></text>
  722.     </content>
  723.     <content>
  724.         <layer>card</layer>
  725.         <id>2</id>
  726.         <text><span class="style2">IFFWindow XCMD v1.0</span></text>
  727.     </content>
  728.     <content>
  729.         <layer>card</layer>
  730.         <id>3</id>
  731.         <text>This stack contains an XCMD that displays a TIFF image file in a window under HyperCard.</text>
  732.     </content>
  733.     <name></name>
  734.     <script></script>
  735. </card>
  736.  
  737.  
  738.